package com.tender.controller;

import com.tender.common.ActionResult;
import com.tender.dtos.BillCompositeShipDTO;
import com.tender.dtos.ImportDTO;
import com.tender.dtos.ImportShipDataAndShipVisitInfoDTO;
import com.tender.dtos.SinoiovVehicleInTimeTracesDTO;
import com.tender.model.ImportBillCondition;
import com.tender.model.ImportShipCondition;
import com.tender.model.ImportUnitCondition;
import com.tender.model.VehicleInTimeTracesCondition;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 进口详情 控制器类
 */
@Tag(name = " 物流可视化首页-进口-详情页", description = "物流可视化首页-进口-详情页")
@RestController
@RequestMapping("/api/visualization/import/detail")
public class ImportDetailController {

    @PostMapping("/unit")
    @Operation(summary = "物流可视化-详情页-箱子")
    public ActionResult<ImportDTO> importDetailUnit(
            @Parameter(description = "物流可视化-详情页-箱子")
            @RequestBody ImportUnitCondition param) {
        return ActionResult.success();
    }

    @PostMapping("/vehicle/inTimeTraces")
    @Operation(summary = "物流可视化-提单号-相关联的所有车辆的实时经纬度")
    public ActionResult<SinoiovVehicleInTimeTracesDTO> vehicleInTimeTraces(
            @Parameter(description = "物流可视化-提单号-相关联的所有车辆的实时经纬度")
            @RequestBody VehicleInTimeTracesCondition param) {
        return ActionResult.success();
    }

    @PostMapping("/bill")
    @Operation(summary = "物流可视化-详情页-提单号")
    public ActionResult<BillCompositeShipDTO> importDetailBill(
            @Parameter(description = "物流可视化-详情页-提单号")
            @RequestBody ImportBillCondition param) {
        // 默认 5s 超时
        return ActionResult.success();
    }

    @PostMapping("/ship")
    @Operation(summary = "物流可视化-详情页-船-进口")
    public ActionResult<ImportShipDataAndShipVisitInfoDTO> importDetailShip(
            @Parameter(description = "物流可视化-详情页-船-进口")
            @RequestBody ImportShipCondition param) {
        // 默认 5s 超时
        return ActionResult.success();
    }

}
